home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Super Collection / Windows 95 Super Collection.iso / win95 / bench / thread / readme.txt < prev    next >
Encoding:
Text File  |  1995-08-13  |  2.7 KB  |  55 lines

  1. //***************************************************************************************
  2. // THRDOMTR.EXE -- The 'Thread-o-meter' utility lets you experiment with
  3. //                 multitasking using threads under Windows 95 and Windows NT.
  4. //    v. 1.00
  5. //                 'What's the Code?', September 1995, Computer Shopper.
  6. //                    
  7. //                 The utility shows off the following features:
  8. //
  9. //                 --Using 'asynchronous' file read and writes using
  10. //                   'worker' threads that execute in the background.
  11. //                   (No more hourglasses in Windows 95 and Windows NT!)
  12. //
  13. //                   Use the 'Options | Thread File I/O Options'
  14. //                   to customize  file I/O settings (which files to use, etc.)
  15. //
  16. //                 --Running 1 to 64 threads to see how 32-bit Windows
  17. //                   handles scheduling.  (You can set the priority class--
  18. //                   idle-time, normal, high priority and real-time--
  19. //                   and see differences in performance.)
  20. //
  21. //                   Use the 'Thread Demo Options' menu item to change
  22. //                   settings.  Available tests let you calculate 1000
  23. //                   primes, do a floating-point intensive calculation,
  24. //                   or draw random graphics.
  25. //
  26. //                 --Using synchronization objects--mutex objects and
  27. //                   critical sections--to coordinate access to a shared
  28. //                   memory resource.  (When they're finished executing,
  29. //                   all threads write to the same memory location, to
  30. //                   update a timestamp.)
  31. //
  32. //      ***USEFUL HINTS***
  33. //
  34. //        You can easily stress out your system by running too many threads
  35. //        at a time.   Start slow: 4 or 8 threads is a good place to start.
  36. //        (Please save work in any other open Windows task in case you have
  37. //        to re-start your system!!!).
  38. //                                                
  39. //        Important!!! You can stop a test with the "Demos. | Stop Thread Demo." menu
  40. //        option or by pressing the Escape key (Esc) while a thread window
  41. //        has the input focus.  If you run another task, though, each thread
  42. //        window may not get the focus back reliably, so it's best not to
  43. //        do anything else while THRDOMTR.EXE is running a test (just like any
  44. //        other benchmark).
  45. //                                              
  46. //        Note: The compiler used was Microsoft Visual C++ 2,x, but this code
  47. //              should compile with any compiler licensing MFC 3.0 or later.)
  48. //
  49. //
  50. //         by Richard Dragan (CIS) 74743,1510
  51. //                           (WWW) 74743.1510@compuserve.com
  52. //                      
  53. //***************************************************************************************
  54.  
  55.